package com.unlcn.ils.kas.dao.model.order;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * 订单在途跟踪明细
 * 
 * @author 罗必量
 * @since 2018-03-06
 */
@TableName("kas_order_otd_detail")
public class OrderOtdDetail extends Model<OrderOtdDetail> {

	private static final long serialVersionUID = 2743968237759153083L;
	/**
	 * id
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	/**
	 * 订单id
	 */
	@TableField("head_id")
	private Long headId;
	/**
	 * 系统订单号
	 */
	@TableField("sys_order_no")
	private String sysOrderNo;
	/**
	 * 跟踪时间
	 */
	@TableField("track_time")
	private Date trackTime;
	/**
	 * 所在省
	 */
	@TableField("province")
	private String province;
	/**
	 * 所在市
	 */
	@TableField("city")
	private String city;
	/**
	 * 所在区/县
	 */
	@TableField("area")
	private String area;
	/**
	 * 详细地址
	 */
	@TableField("address")
	private String address;
	/**
	 * 经度
	 */
	@TableField("longitude")
	private BigDecimal longitude;
	/**
	 * 纬度
	 */
	@TableField("latitude")
	private BigDecimal latitude;
	/**
	 * 剩余距离
	 */
	@TableField("distance")
	private Float distance;
	/**
	 * 是否手动添加 0为否,1为是
	 */
	@TableField("ismanual")
	private Integer ismanual;
	/**
	 * TMS在途ID
	 */
	@TableField("tid")
	private String tId;
	/**
	 * 是否删除 0 未删除 1 删除
	 */
	@TableField("isdelete")
	private Integer isdelete;
	// 运输方式
	@TableField("src_type")
	private String srcType;
	// 承运车
	@TableField("shiper")
	private String shiper;

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getHeadId() {
		return headId;
	}

	public void setHeadId(Long headId) {
		this.headId = headId;
	}

	public String getSysOrderNo() {
		return sysOrderNo;
	}

	public void setSysOrderNo(String sysOrderNo) {
		this.sysOrderNo = sysOrderNo;
	}

	public Date getTrackTime() {
		return trackTime;
	}

	public void setTrackTime(Date trackTime) {
		this.trackTime = trackTime;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public BigDecimal getLongitude() {
		return longitude;
	}

	public void setLongitude(BigDecimal longitude) {
		this.longitude = longitude;
	}

	public BigDecimal getLatitude() {
		return latitude;
	}

	public void setLatitude(BigDecimal latitude) {
		this.latitude = latitude;
	}

	public Float getDistance() {
		return distance;
	}

	public void setDistance(Float distance) {
		this.distance = distance;
	}

	public Integer getIsmanual() {
		return ismanual;
	}

	public void setIsmanual(Integer ismanual) {
		this.ismanual = ismanual;
	}

	public String gettId() {
		return tId;
	}

	public void settId(String tId) {
		this.tId = tId;
	}

	public Integer getIsdelete() {
		return isdelete;
	}

	public void setIsdelete(Integer isdelete) {
		this.isdelete = isdelete;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	public String getSrcType() {
		return srcType;
	}

	public void setSrcType(String srcType) {
		this.srcType = srcType;
	}

	public String getShiper() {
		return shiper;
	}

	public void setShiper(String shiper) {
		this.shiper = shiper;
	}

	@Override
	public String toString() {
		return "OrderOtdDetail [address=" + address + ", area=" + area + ", city=" + city + ", distance=" + distance
				+ ", headId=" + headId + ", id=" + id + ", isdelete=" + isdelete + ", ismanual=" + ismanual + ", latitude="
				+ latitude + ", longitude=" + longitude + ", province=" + province + ", shiper=" + shiper + ", srcType="
				+ srcType + ", sysOrderNo=" + sysOrderNo + ", tId=" + tId + ", trackTime=" + trackTime + "]";
	}

}
